﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IBLL;
using IDAL;

namespace BLL
{
    class UserInfoInAdmin:IUserInfoInAdmin
    {
        private static readonly IAdminUser dal = DALFactory.DataAccess.CetUser();
        public IOrderedQueryable GetOnePageUser(int page)
        {
            return dal.GetOnePageUser(page);
        }

        public IOrderedQueryable GetOnePageUserByTime(int page)
        {
            return dal.GetOnePageUserByTime(page);
        }

        public IOrderedQueryable GetUserByName(string name)
        {
            return dal.GetUserByName(name);
        }

        public int GetUserCount()
        {
            return dal.GetUserCount();
        }


        public void DeleteUserById(int id)
        {
             dal.DeleteUserById(id);
        }


        public string GetUserNameByUserID(int userID)
        {
            return dal.GetUserNameByUserID(userID);
        }
    }
}
